import {Controller} from '@nestjs/common';
import {ApiTags} from "@nestjs/swagger";
import {Course} from "@libs/db/models/course.model";
import {InjectModel} from "nestjs-typegoose";
import {Model} from 'mongoose'
import {Crud} from "nestjs-mongoose-crud";

@Controller('courses')
@ApiTags('课程')
@Crud({
  model: Course,
  routes: {
    create: false,
    delete: false,
    update: false
  }
})
export class CoursesController {
  constructor(@InjectModel(Course) private readonly model: Model<Course>) {
  }
}
